<template>
  <h3>Parent</h3>
  <Child :title="message" :msg="txt" :ob="object" @sonToFather="getHandle"/>
  <p>"父元素"{{apply}}</p>
</template>

<script>
import Child from "@/props_extends/Child.vue";

export default {
  name: "Parent",
  components: {
    Child
  },
  data(){
    return{
      message:"动态的数据",
      txt:"props的效验",
      object:{
        name:"xiaowei",
        age:18,
        stu:"ppp"
      },
      apply:"未接受之前"
    }
  },methods:{
    getHandle(data){
      console.log("触发了",data)
      this.apply=data
    }
  }
}
</script>

<style scoped>

</style>
